package com.dao;
import com.entity.AsKeywords;
import org.apache.ibatis.annotations.Param;
import java.util.ArrayList;

public interface AsKeywordsDao
{
    //查询当前用户的关键词分页显示
    public ArrayList<AsKeywords> getKeywordsOfAgent(
            @Param( "agentId" ) Integer agentId ,
            @Param( "keywords" ) String keywords ,
            @Param( "index" ) Integer index ,
            @Param( "quantity" ) Integer quantity );

    //查询关键词数量
    public Integer getKeywordsCount( @Param( "agentId" ) Integer agentId );

    //查询是否存在指定关键词
    public Integer keywordsExistOrNot( String words );

    //添加一条关键词
    public Integer addKeywords( AsKeywords keywords );

    //根据id查询一条关键词
    public AsKeywords getOneKeyWordById( Integer id );

    //更新一条关键词
    public Integer updateOneKeywords( AsKeywords keywords );

}
